package com.lulin.mall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author lulin
 * @date 2022/9/21 14:42
 */
//开启redis的session共享功能
@EnableRedisHttpSession
//开启缓存功能
@EnableCaching
//指定远程调用的接口包路径
@EnableFeignClients(basePackages = "com.lulin.mall.product.fegin")
//配置注册中心 的注册发现
@EnableDiscoveryClient
//指定扫描包的mapper接口路径
@MapperScan("com.lulin.mall.product.dao")
@ComponentScan("com.lulin")
@SpringBootApplication
public class MallProducetApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallProducetApplication.class, args);
    }

}
